#include <iostream>
using namespace std;
#include "LinkedMatrix.h"

int main() {
/*	linkedMatrix<int> matrix1(6, 7, 3);
	linkedMatrix<int> matrix2(6, 7,3);
	cin >> matrix1;
	cin >> matrix2;
	matrix1.output(cout);
	matrix2.output(cout);

	linkedMatrix<int> matrix3(6,7,0);
	matrix3.matrixPlus(matrix1, matrix2, matrix3);
	matrix3.output(cout);
	linkedMatrix<int> matrix4(6, 7, 0);
	matrix4.matrixMinus(matrix1, matrix2, matrix4);
	matrix4.output(cout);*/

	linkedMatrix<int> matrix5(4, 5, 4);
	linkedMatrix<int> matrix6(5, 2, 3);
	linkedMatrix<int> matrix7(4, 2, 0);
	cin >> matrix5;
	cin >> matrix6;
	matrix5.output(cout);
	matrix6.output(cout);
	matrix7.matrixTimes(matrix5, matrix6, matrix7);
	matrix7.output(cout);

	return 0;
}